var heWeather={

  getWeather: function(callback) {
     
     wx.request({
        url: 'https://free-api.heweather.com/s6/weather/now',
        data:{
          location: 'auto_ip',
          key: '663ca2e735ed48eeaa941a2150792d31'
      },
        success: function (result) {
          callback(result.data);
        console.log(result.data);        
      }
   })
  }
};
module.exports = heWeather;